import type { AppRouteRecordRaw } from './types';
import Layout from '/@/components/Layout/Index.vue';

// Basic routing without permission
export const basicRoutes: Array<AppRouteRecordRaw> = [
  {
    path: '/login',
    component: () => import('/@/views/login.vue'),
    hidden: true,
  },
  {
    path: '/',
    redirect: '/user/center',
    hidden: true,
  },
  {
    path: '/user',
    component: Layout,
    hidden: true,
    redirect: 'noredirect',
    children: [
      {
        path: 'center',
        component: () => import('/@/views/system/user/center/index.vue'),
        meta: { title: '个人中心' },
      },
    ],
  },
  {
    path: '/401',
    component: () => import('/@/views/features/page401.vue'),
    hidden: true,
  },
  {
    path: '/404',
    component: () => import('/@/views/features/page404.vue'),
    hidden: true,
  },
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path*',
        component: () => import('/@/views/features/redirect.vue'),
      },
    ],
  },
];
